<%--
  Created by IntelliJ IDEA.
  User: 86135
  Date: 2021-12-26
  Time: 2:52
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>历史记录</title>
    <%@ include file="/page/menu/head.jsp" %>
</head>
<body>
    <div id="header">
        <span class="wel_word">
            <c:if test="${ empty requestScope.page.pageTotalCount }">
            共0条记录
            </c:if>
            <c:if test="${ not empty requestScope.page.pageTotalCount }">
                共${ requestScope.page.pageTotalCount }条记录
            </c:if>
        </span>
        <%@include file="/page/menu/login_menu.jsp"%>
    </div>
    <div id="main">
        <table>

            <c:if test="${empty requestScope.page.items}">

                <div><p align="center" style="margin: 200px">你还没有留下足迹哦，快去<a href="index.jsp">首页</a>逛逛吧！</p></div>

            </c:if>
            <c:if test="${!empty requestScope.page.items}">

                <tr style="height:100px ">
                    <th>用户编号</th>
                    <th>商品编号</th>
                    <th>商品名称</th>
                    <th>状态</th>
                </tr>
                <c:forEach items="${requestScope.page.items}" var="record">
                    <tr style="height:100px " >
                        <td>${record.uid}</td>
                        <td>${record.id}</td>
                        <td>${record.name}</td>
                        <td>${record.stat==false?"添加到购物车":"购买"}</td>
                    </tr>
                </c:forEach>
            </c:if>
        </table>

    </div>
</body>
</html>
